home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 016a / tsrcom33.zip / TSR.DOC < prev    next >
Text File  |  1992-01-08  |  55KB  |  1,270 lines

  1.                         TSR Utilities Version 3.3
  2.                              Kim Kokkonen
  3.                           TurboPower Software
  4.                                 1/8/92
  5.  
  6. Table of Contents
  7. ---------------------------------------------------------------------
  8. 1. Introduction
  9. 2. MARK, FMARK, and RELEASE
  10. 3. MARKNET and RELNET
  11. 4. WATCH and DISABLE
  12. 5. MAPMEM, RAMFREE, and DEVICE
  13. 6. EATMEM
  14. 7. Known Limitations
  15. 8. Version History
  16. 9. Copyright and License Information
  17.  
  18. 1. Introduction
  19. ---------------------------------------------------------------------
  20. The TSR Utilities are a collection of programs useful for managing DOS
  21. memory, particularly for managing memory-resident programs, also known
  22. as TSR's. TSR stands for "Terminate and Stay Resident". The most
  23. popular use of these utilities is for removing TSR's from memory
  24. without rebooting the PC. There are many other uses, however,
  25. especially if you are a software developer.
  26.  
  27. The TSR Utilities have grown to include 11 programs. Here's a quick
  28. overview of each one:
  29.  
  30.   MARK     marks a position in memory above which TSR's can be
  31.            released.
  32.   RELEASE  removes TSR's from memory.
  33.   FMARK    performs the same function as MARK but uses less memory.
  34.   MARKNET  like MARK, but saves a more complete picture of system
  35.            status.
  36.   RELNET   removes TSR's marked with MARKNET.
  37.   WATCH    a TSR itself, it keeps records of other TSR's.
  38.   DISABLE  disables or reactivates TSR's, leaving them in memory.
  39.   RAMFREE  shows how much RAM memory is available.
  40.   MAPMEM   shows what memory resident programs are loaded.
  41.   DEVICE   shows what device drivers are loaded.
  42.   EATMEM   uses up memory for controlled program testing.
  43.  
  44. These programs are described in detail in the following sections. If
  45. you haven't used them before, be sure to read the documentation: All
  46. of the programs are command line driven, and unexpected events may
  47. occur if you just start typing the program names at the DOS command
  48. line. Also be sure to read section 7, "Known Limitations".
  49.  
  50. The most notable feature of TSR Utilities version 3.0 is support for
  51. MS-DOS 5.0 and TSR's loaded in high memory. If you're familiar with
  52. previous versions of the TSR Utilities, see the file TSR30.DOC for a
  53. summary of the changes in version 3.0. Version 3.1 cleans up bugs and
  54. compatibility problems discovered in 3.0. Version 3.2 of the utilities
  55. generalizes the high memory support, so that it no longer requires DOS
  56. 5.0 or particular memory manager versions.
  57.  
  58.  
  59. 2. MARK, FMARK, and RELEASE
  60. ---------------------------------------------------------------------
  61. MARK.COM and RELEASE.EXE are used to remove TSR's from memory, without
  62. requiring a system reboot. In their simplest form, MARK and RELEASE
  63. are used as follows:
  64.  
  65. 1. Run MARK before installing your TSR(s). This marks the current
  66. position in memory and stores information that RELEASE will later need
  67. to restore the system. A common place to call MARK is in your
  68. AUTOEXEC.BAT file.
  69.  
  70. 2. Install whatever TSR's you want, using the normal method for each
  71. TSR.
  72.  
  73. 3. To remove those TSR's from memory, run RELEASE. This will release
  74. all of the memory above (and including) the last MARK, and will
  75. restore the system to the state at the time the MARK was made.
  76.  
  77. There are a number of variations of this simple method. If you want to
  78. release TSR's loaded in high memory, be sure to read the remainder of
  79. this section for instructions on how to do so.
  80.  
  81. MARKs can be stacked in memory, as shown in the following hypothetical
  82. batch file:
  83.  
  84.     MARK
  85.     TSR1
  86.     MARK
  87.     TSR2
  88.     MARK
  89.     TSR3
  90.  
  91. Each call to RELEASE releases memory above and including the last
  92. MARK. In this example, the first call to RELEASE would remove TSR3 and
  93. the last MARK from memory, the second call would remove TSR2 and its
  94. MARK, and so on.
  95.  
  96. MARK and RELEASE may be called using a command line parameter. The
  97. parameter specifies a "mark name" and allows releasing TSR's to a
  98. specific point in memory. Consider the following example:
  99.  
  100.     MARK TSR1
  101.     TSR1
  102.     MARK TSR2
  103.     TSR2
  104.     MARK TSR3
  105.     TSR3
  106.  
  107. This loads the three TSR's just as in the previous example. However,
  108. if RELEASE were called like this,
  109.  
  110.     RELEASE TSR2
  111.  
  112. then both TSR2 and TSR3 would be removed from memory. Note that the
  113. use of such a name does not allow just a single layer of TSR's to be
  114. removed (just TSR2, for example). RELEASE always removes all TSR's
  115. including and beyond the one named.
  116.  
  117. A mark name is any string up to 126 characters long. The name may not
  118. include white space (blanks or tabs). Case (upper or lower) is not
  119. significant when matching mark names.
  120.  
  121. When named marks are used as in this example, calling RELEASE without
  122. specifying a mark name will still remove the last TSR from memory.
  123. Assuming that TSR1, TSR2, and TSR3 were still in memory, typing just
  124. RELEASE would remove TSR3 and the last mark. It is possible to change
  125. this behavior by using "protected marks", which can be released only
  126. by explicitly specifying their names. A protected mark is placed by
  127. giving it a name that starts with an exclamation point, '!'. Consider
  128. the following:
  129.  
  130.     MARK TSR1
  131.     TSR1
  132.     MARK TSR2
  133.     TSR2
  134.     MARK !TSR3
  135.     TSR3
  136.  
  137. Here !TSR3 specifies a protected mark. Typing just RELEASE would
  138. produce an error message "No matching marker found, or protected
  139. marker encountered". The same error would occur after entering the
  140. command RELEASE TSR2. When this error occurs, RELEASE does not remove
  141. any TSR's from memory.
  142.  
  143. The only way to remove TSR3 in this case is by entering
  144.  
  145.     RELEASE !TSR3
  146.  
  147. Each time a MARK is placed in memory, it consumes about 1600 bytes of
  148. RAM space, which is used to store a copy of the system interrupt
  149. vector table and other information with which RELEASE can later
  150. restore the system. Although 1600 bytes isn't very much, we can reduce
  151. this memory usage by storing the information in a disk file rather
  152. than in memory. FMARK.COM is a variation on MARK that does just that.
  153. You can call FMARK at any time that you would call MARK. FMARK uses
  154. only about 150 bytes of memory.
  155.  
  156. All calls to FMARK must include a command line parameter to specify
  157. the name of the file:
  158.  
  159.     FMARK [d:][directory]filename
  160.  
  161. You should generally specify a complete pathname for the mark file.
  162. When you later call RELEASE, you must give it the identical pathname,
  163. regardless of what the current directory happens to be at the time.
  164. For example, if you specified the following file mark
  165.  
  166.     FMARK C:\TEST\TEST.MRK
  167.  
  168. then the following calls to RELEASE would generate an error,
  169.  
  170.     RELEASE TEST.MRK
  171.     RELEASE C:TEST.MRK
  172.  
  173. even if the current directory on drive C: was \TEST. The only way to
  174. call RELEASE is with
  175.  
  176.     RELEASE C:\TEST\TEST.MRK
  177. or
  178.     release c:\test\test.mrk
  179.  
  180. RELEASE can use either type of mark: in-memory or on-disk. Note that
  181. file marks placed by FMARK are never treated as protected marks,
  182. although of course their names must be passed to RELEASE in order to
  183. remove them directly.
  184.  
  185. Consider the following example:
  186.  
  187.     MARK TSR1
  188.     TSR1
  189.     FMARK C:\MARKS\TSR2.MRK
  190.     TSR2
  191.  
  192. Typing just RELEASE in this situation generates the warning message
  193. "No matching marker found, or protected marker encountered", because
  194. the file mark's name has not been provided.
  195.  
  196. TSR2 can be removed from memory by entering
  197.  
  198.     RELEASE C:\MARKS\TSR2.MRK
  199.  
  200. RELEASE deletes the mark file when it has finished.
  201.  
  202. Alternatively, TSR2 and TSR1 could be removed at the same time by
  203. typing
  204.  
  205.     RELEASE TSR1
  206.  
  207. MARK may be called with one optional command line parameter:
  208.  
  209.     /Q         write no screen output. (-Q means the same.)
  210.  
  211. The /Q option is useful when you are using MARK in an integrated
  212. system. Redirecting MARK's output may waste system file handles and
  213. should never be done.
  214.  
  215. RELEASE has several command line options to modify its behavior. The
  216. following table lists the options, which must start with a slash, '/',
  217. or a hyphen, '-'.
  218.  
  219.     /E         do NOT access EMS memory.
  220.     /H         work with upper memory if available.
  221.     /K         release memory, but keep the mark in place.
  222.     /Q         write no screen output.
  223.     /S chars   stuff string (<16 chars) into keyboard buffer on exit.
  224.     /U         work with upper memory, but halt if none found.
  225.     /?         write this help screen.
  226.  
  227. You can also put the string RELEASE=options in the DOS environment.
  228. For example, if you type
  229.  
  230.     SET RELEASE=/U/Q
  231.  
  232. at the DOS command line, RELEASE will use the /U and /Q options as the
  233. defaults thereafter.
  234.  
  235. None of the options is required for normal use of RELEASE.
  236.  
  237. /E is made available for systems running early, buggy EMS (expanded
  238. memory) drivers that don't correctly implement all of the EMS 3.2
  239. system calls. Don't use it unless you have an EMS-related problem
  240. during or after running RELEASE.
  241.  
  242. /H is like /U (see below), but will continue even if no upper memory
  243. blocks are found. /U will cause RELEASE to halt if no upper memory
  244. blocks are found. With /H you can write a batch file that works on all
  245. machines whether or not they have upper memory blocks.
  246.  
  247. /K is useful when you will be releasing and reloading a TSR
  248. repeatedly. With it, you avoid the need to replace the mark each time
  249. the TSR is released. Using /K in combination with a file mark also
  250. prevents RELEASE from deleting the mark file.
  251.  
  252. /Q prevents RELEASE from writing any screen output (unless an error
  253. occurs). This is useful when you are using RELEASE in an integrated
  254. system. Note that redirecting RELEASE's output causes technical
  255. problems and should not be done.
  256.  
  257. /S followed by at least one space and then a short string (15
  258. characters or fewer) tells RELEASE to stuff this string into the
  259. keyboard buffer just before exiting. RELEASE automatically adds a
  260. carriage return to the end of the string. The string may not contain
  261. tabs or spaces.
  262.  
  263. To explain why the /S option is important, we must digress a moment.
  264. Let's assume that you normally keep SideKick loaded, but that you must
  265. unload it in order to have enough memory free to run Lotus 1-2-3. It
  266. would seem reasonable to write a little batch file like this:
  267.  
  268.    RELEASE SK
  269.    LOTUS
  270.    MARK SK
  271.    SK
  272.  
  273. which would remove the previously loaded SideKick from memory, run
  274. Lotus, and then load SideKick again. Unfortunately, this doesn't work!
  275.  
  276. The reason is complicated to explain. It must suffice here to say that
  277. DOS batch files trap memory, and the memory freed by a call to RELEASE
  278. does not truly become available until the current batch file ends.
  279.  
  280. Now perhaps the need for the /S option becomes clear. We can split the
  281. previous batch file into two:
  282.  
  283.   batch1:
  284.     RELEASE SK /S BATCH2
  285.  
  286.   batch2:
  287.     LOTUS
  288.     MARK SK
  289.     SK
  290.  
  291. The first batch file releases the memory and stuffs the characters
  292. 'BATCH2<Enter>' into the keyboard buffer. When the batch file ends,
  293. the released memory becomes available. DOS automatically reads the
  294. keystrokes waiting in the buffer and starts up the second batch file,
  295. which runs Lotus and later reloads SideKick.
  296.  
  297. To keep things simple, the /S option pokes the specified keystrokes
  298. directly into the system keyboard buffer. As a result, the number of
  299. keystrokes is limited to 15 (not counting the <Enter> key, which
  300. RELEASE adds automatically). This always allows enough keys to start
  301. another batch file, however, and the new batch file can take over from
  302. there.
  303.  
  304. RELEASE detects when it is releasing memory within a batch file. It
  305. writes a warning message to that effect, but continues processing
  306. anyway under the assumption that the batch file is about to end. You
  307. can ignore the warning if you've already taken account of DOS's memory
  308. management behavior within batch files.
  309.  
  310. The /U option is required when you are releasing a TSR that has been
  311. loaded into high memory (memory between 640K and 1 megabyte). It may
  312. be also appropriate even for a TSR loaded into low memory, if other
  313. TSR's have been loaded into high memory.
  314.  
  315. The high memory features of TSR Utilities version 3.0 are available
  316. only if you are running a compatible memory manager. Any memory
  317. manager that supports the UMB (upper memory block) features of XMS
  318. (extended memory specification) memory managers should work with the
  319. high memory features of the TSR Utilities. This includes 386MAX
  320. (Qualitas), QEMM386 (Quarterdeck), HIMEM/EMM386 (Microsoft), and
  321. HIDOS/EMM386 (Digital Research).
  322.  
  323. If you're using just the high memory features of MS-DOS 5.0 itself,
  324. without additional memory managers, note that you must have at least
  325. the following in your CONFIG.SYS in order for the TSR Utilities to
  326. access high memory:
  327.  
  328.   DEVICE=HIMEM.SYS
  329.   DEVICE=EMM386.SYS RAM
  330.   DOS=UMB
  331.  
  332. See the discussion of the EMM386.SYS driver in your MS-DOS 5.0
  333. documentation for more information about options compatible with
  334. creating upper memory blocks.
  335.  
  336. With other memory managers such as QEMM and 386MAX you should *not*
  337. put the DOS=UMB statement in CONFIG.SYS. (This is a change from
  338. versions 3.0 and 3.1 of the TSR Utilities.)
  339.  
  340. To test whether your memory manager is compatible with the TSR
  341. Utilities high memory features, try entering MAPMEM /U at the DOS
  342. command line. If you get a high memory report from MAPMEM, then you
  343. can assume that the memory manager is compatible with TSR Utilities
  344. 3.0. Because of the lack of complete standards for managing high
  345. memory, the names and attributes of programs in high memory may
  346. sometimes appear garbled: unfortunately there is little we can do
  347. about this without building features specific to particular memory
  348. managers into the TSR Utilities.
  349.  
  350. Note that even if you don't get a high memory report from MAPMEM, you
  351. can still use the TSR Utilities 3.0 without upper memory support.
  352.  
  353. The /U option causes a fundamental change in the behavior of RELEASE.
  354. It is important that you understand what it does in order to use it
  355. properly.
  356.  
  357. When the /U option is *not* specified, RELEASE removes programs in
  358. address order. That is, with a few exceptions, it deallocates any
  359. memory blocks that have a memory address greater than or equal to that
  360. of the mark.
  361.  
  362. This behavior is almost never appropriate when TSR's are loaded high.
  363. When high memory is involved, the *chronological* order in which TSR's
  364. were loaded rarely matches the *address* order in which they were
  365. loaded. Before TSR's could be loaded high, these two orderings were
  366. usually the same, so no distinction was necessary. Now, however, it's
  367. common to load one program high, then one low, then another high; or
  368. to load one program into "region 2" of high memory, then another into
  369. "region 1", and so on.
  370.  
  371. Therefore, when the /U option is activated, RELEASE frees memory in
  372. *chronological* order. That is, it frees all memory blocks allocated
  373. since the time the mark was placed, regardless of the address position
  374. of the memory. Additional information is now stored in the mark file
  375. or memory image to allow this to occur. Only when /U is specified does
  376. RELEASE access high memory.
  377.  
  378. If you have *any* TSR's loaded into high memory, you should use the /U
  379. option, even if the particular TSR you're unloading is located in low
  380. memory. Depending on the chronological order in which you loaded the
  381. TSR's, an unload from low memory may also trigger unloads from high
  382. memory, or vice versa.
  383.  
  384. When you intend to use the /U option, you must provide a unique mark
  385. name for each mark (because there is no unambiguous way to find the
  386. correct unnamed mark). Note that a mark name is inherent in the
  387. filename specified to FMARK.
  388.  
  389. Because of the chronological nature of RELEASE /U, you can load the
  390. MARK high and the associated TSR low (or vice versa) if desired.
  391.  
  392. Technical notes: due to the lack of comprehensive standards for
  393. managing high memory, the TSR Utilities must use a heuristic technique
  394. for finding the first block of high memory. They search on each
  395. paragraph boundary starting at the top of normal memory (normally
  396. 0A000h) for the character 'M', which is always found at the beginning
  397. of a valid memory control block. Then, using this location as the
  398. starting point, they trace the block chain searching for a terminating
  399. 'Z' block. If no 'Z' block is found, they start searching again at the
  400. paragraph beyond the previously found 'M' block. This requires that at
  401. least two blocks be already allocated in high memory (an 'M' block and
  402. a 'Z' block); we haven't found any cases where this is a practical
  403. limitation. Overall, the heuristic technique appears to be reliable
  404. with the common high memory managers, and has the advantage that it
  405. doesn't count on unique features of any one of them.
  406.  
  407. The high memory features of the TSR Utilities count on the "link UMB"
  408. feature of DOS 5 being turned off. When link UMB is on, normal RAM and
  409. high memory are linked together into a single chain of memory control
  410. blocks, and in this case the heuristic technique used by the utilities
  411. would cause the blocks in high memory to be processed twice.
  412. Fortunately, we don't know of any cases where "link UMB" is activated
  413. by DOS application programs except temporarily during times when the
  414. TSR Utilities could not possibly be used.
  415.  
  416.  
  417. 3. MARKNET and RELNET
  418. ---------------------------------------------------------------------
  419. Use of these utilities is very similar to that described in the
  420. preceding section. MARKNET is analogous to FMARK, and RELNET is like
  421. RELEASE. MARKNET stores more information about the system's status
  422. than does MARK, so it is appropriate for managing TSR's, such as
  423. network shells, that hook into the system at a low level.
  424.  
  425. Because MARKNET stores so much information about the system, it always
  426. writes the data to a disk file in order to reduce its own memory
  427. usage.
  428.  
  429. Command line syntax for MARKNET and RELNET is:
  430.  
  431.   MARKNET [d:][directory]filename [/Q]
  432.   RELNET  [d:][directory]filename [options]
  433.  
  434. The main command line parameter to each program specifies the name of
  435. the file where the mark information will be stored. We refer to this
  436. file as the net mark file. A complete pathname should be specified for
  437. the net mark file. RELNET's pathname must exactly match that passed to
  438. MARKNET, with the exception of case.
  439.  
  440. Note that MARKNET and RELNET may be used in almost any situation where
  441. FMARK and RELEASE are used. MARKNET saves all of the same system
  442. information as does FMARK, but it goes further to store information
  443. such as the device driver chain, DOS internal variable areas, DOS
  444. system file tables, DOS environment, communications port status, XMS
  445. memory state, and other information. Nevertheless, MARKNET and RELNET
  446. were written primarily because of the large demand to release the
  447. NetWare shell. We'll refer to NetWare specifically in the following
  448. and provide an example of how to load and release it.
  449.  
  450. The only new restriction for using MARKNET is that the system must be
  451. running DOS version 3.0 or later. MARKNET depends on the format of
  452. certain internal DOS data structures that were quite different in DOS
  453. version 2.
  454.  
  455. Like FMARK, MARKNET leaves a small (144-192) byte mark in memory, and
  456. writes a disk file to store the system status. MARKNET's file varies
  457. in size, but is typically 3-4K bytes. The size depends on the number
  458. of device drivers, the value of the 'FILES=' directive in CONFIG.SYS,
  459. the number of EMS and XMS memory blocks allocated, and other DOS
  460. implementation details.
  461.  
  462. Do not attempt to redirect the output of MARKNET. Doing so will waste
  463. at least one file handle that cannot be recovered later by RELNET.
  464. MARKNET's /Q option is provided to prevent it from writing any screen
  465. output.
  466.  
  467. Marks placed with MARK, FMARK, and MARKNET may be mixed in the same
  468. system. RELEASE treats all marks placed with MARKNET as protected;
  469. such marks may be released only by calling RELNET explicitly. Consider
  470. the following example:
  471.  
  472.   MARK TSR1
  473.   TSR1
  474.   FMARK C:\MARKS\TSR2.MRK
  475.   TSR2
  476.   MARKNET C:\MARKS\TSR3.MRK
  477.   TSR3
  478.  
  479. Entering RELEASE by itself would generate a warning and do nothing
  480. else. Entering RELEASE C:\MARKS\TSR2.MRK would generate the same
  481. warning. The only way to get all three of these TSR's out of memory
  482. would be to enter the following commands in sequence:
  483.  
  484.   RELNET C:\MARKS\TSR3.MRK
  485.   RELEASE C:\MARKS\TSR2.MRK
  486.   RELEASE TSR
  487.  
  488. RELNET has options to control how much of the system state it
  489. restores. Several of the options match those of RELEASE; new ones are
  490. also provided to control the additional information that MARKNET
  491. stores. RELNET accepts the following options:
  492.  
  493.   /C        do NOT restore the communications ports.
  494.   /E        do NOT access EMS memory.
  495.   /H        work with upper memory if available.
  496.   /I        do NOT shut down IPX events and sockets.
  497.   /K        release memory, but keep the mark in place.
  498.   /P        do NOT restore DOS environment.
  499.   /Q        write no screen output.
  500.   /R        revector 8259 interrupt controller to powerup state.
  501.   /S chars  stuff string (<16 chars) into keyboard buffer on exit.
  502.   /T        do NOT reset the system timer chip.
  503.   /U        work with upper memory, but halt if none found.
  504.   /V        verbose: show each step of the restore.
  505.   /X        do NOT access XMS memory.
  506.   /?        write help screen.
  507.  
  508. You can also put the string RELNET=options in the DOS environment. For
  509. example, if you type
  510.  
  511.     SET RELNET=/U/Q
  512.  
  513. at the DOS command line, RELNET will use the /U and /Q options as the
  514. defaults thereafter.
  515.  
  516. None of these options, except perhaps /U, is required in order to
  517. release the NetWare workstation shell.
  518.  
  519. /C prevents RELNET from restoring the communications state of the
  520. system (as encoded in the 8250 async chip and the 8259 programmable
  521. interrupt controller). Because both of these chips provide readable
  522. registers, MARKNET is able to store an accurate picture of the
  523. communications state when the mark is stored; RELNET can restore the
  524. state to exactly what it was. Therefore, the /C option should be
  525. needed rarely, perhaps only on newer PS/2 models that don't use the
  526. 8250 as a communications controller. Note that MARKNET stores
  527. information only about COM1 and COM2.
  528.  
  529. /E is made available for systems running early, buggy EMS drivers that
  530. don't correctly implement all of the EMS 3.2 system calls. Don't use
  531. it unless you have an EMS-related problem during or after running
  532. RELNET.
  533.  
  534. /H is like /U (see below), but will continue even if no upper memory
  535. blocks are found. /U will cause RELNET to halt if no upper memory
  536. blocks are found. With /H you can write a batch file that works on all
  537. machines whether or not they have upper memory blocks.
  538.  
  539. /I prevents RELNET from detecting and deactivating IPX events and
  540. sockets owned by the memory blocks being released. (IPX is the low
  541. level communications protocol used on Novell networks.) Don't use it
  542. unless it solves a problem for you.
  543.  
  544. /K is useful when you will be releasing and reloading a TSR
  545. repeatedly. With it, you avoid the need to replace the mark each time
  546. the TSR is released. Using /K prevents RELNET from deleting the net
  547. mark file.
  548.  
  549. /P keeps RELNET from restoring the DOS environment, which it normally
  550. does because NetWare modifies the DOS PATH. In some cases, other
  551. changes to the environment should not be undone; use the /P switch
  552. only when such changes must be preserved.
  553.  
  554. /Q prevents RELNET from writing any screen output (unless an error
  555. occurs). This is useful when you are using RELNET in an integrated
  556. system. Redirecting RELNET's output causes technical problems and
  557. should never be done.
  558.  
  559. /R may be useful for unloading task-switching utilities that
  560. "revector" the hardware interrupt controller. Use it only if it solves
  561. a problem.
  562.  
  563. /S followed by at least one space and then a short string (15
  564. characters or fewer) tells RELNET to stuff this string into the
  565. keyboard buffer just before exiting. RELNET automatically adds a
  566. carriage return to the end of the string. The string may not contain
  567. tabs or spaces. See the discussion of /S in the preceding section for
  568. more details.
  569.  
  570. /T keeps RELNET from resetting the system timer chip to its default
  571. rate, which it does by default.
  572.  
  573. /U causes RELNET to access high memory. See the discussion of high
  574. memory in the previous section for more information.
  575.  
  576. /V activates additional status reporting during the release and may
  577. provide useful information in cases when RELNET isn't working.
  578.  
  579. /X prevents RELNET from restoring the state of XMS (extended) memory.
  580. This option is provided in case of an unforeseen conflict with an XMS
  581. memory driver.
  582.  
  583. The following is a simple version of a NetWare LOGIN.BAT file with
  584. support for releasing the shell:
  585.  
  586.   rem place the mark
  587.       marknet C:\NET\NETWARE.MRK
  588.  
  589.   rem load the NetWare shell TSR's
  590.       ipx
  591.       net3
  592.   rem optional portions of the shell
  593.   rem netbios
  594.   rem int2f
  595.  
  596.   rem switch to login drive and log in
  597.       F:
  598.       login USERNAME
  599.  
  600. At a minimum, the items in uppercase will need to be customized for a
  601. given user and workstation.
  602.  
  603. NetWare could then be released with the following batch file:
  604.  
  605.   rem let the server know we're leaving
  606.       z:\public\logout
  607.   rem restore the workstation
  608.       relnet C:\NET\NETWARE.MRK
  609.  
  610. As of TSR Utilities version 3.0, you may release the NETBIOS emulator
  611. independently from NETx and IPX. You should always release NETx and
  612. IPX together.
  613.  
  614.  
  615. 4. WATCH and DISABLE
  616. ---------------------------------------------------------------------
  617. WATCH.COM is a memory-resident program that keeps track of other
  618. memory resident programs. As a TSR goes resident, WATCH updates a data
  619. area in memory that contains information about what interrupt vectors
  620. were taken over. This information can later be used by MAPMEM and
  621. DISABLE to show more details about interrupts than normally available.
  622.  
  623. Installation of WATCH.COM is optional. All of the TSR Utilities except
  624. DISABLE can be used whether or not WATCH is installed.
  625.  
  626. If you want to use it, WATCH.COM should be installed as one of the
  627. first TSR's in your AUTOEXEC.BAT file. WATCH may be loaded into low
  628. memory or, if a compatible memory manager is in use, into high memory.
  629.  
  630. WATCH uses about 3100 bytes of memory when it is installed. Most of
  631. this memory holds various information about the TSR's installed in the
  632. system -- it includes a copy of the interrupt vector table and a data
  633. area containing a list of the interrupt vectors taken over by each
  634. TSR. This information is used by DISABLE to deactivate and reactivate
  635. TSR's without removing them from memory. It is also used by MAPMEM to
  636. report more accurately on the interrupt vectors trapped by each TSR.
  637.  
  638. With DISABLE.EXE, you can disable and reenable specified memory
  639. resident programs without removing them from memory. Its function is
  640. analogous to that performed by REFEREE from Persoft, although DISABLE
  641. has neither a fancy user interface nor an option to work from within
  642. other programs. DISABLE can allow conflicting TSR's to coexist, and it
  643. can let you run applications whose keystrokes conflict with those of
  644. TSR's already loaded. DISABLE also provides a small bonus in that it
  645. can be used to detect the presence of a particular TSR in memory, thus
  646. allowing the design of semi-intelligent batch files. (Note that, as of
  647. version 3.0, MAPMEM also can detect the presence of a particular TSR,
  648. without requiring that WATCH be loaded.)
  649.  
  650. In order to use DISABLE, you must install WATCH.COM prior to loading
  651. any TSR that you wish to disable. WATCH keeps the detailed information
  652. about each memory resident program that DISABLE uses to later control
  653. them.
  654.  
  655. Like the other TSR Utilities, DISABLE is operated from the command
  656. line. You specify a single TSR by its name (if you are running DOS 3.0
  657. or later) or by its address as determined from a MAPMEM report
  658. (described below). If you specify an address, immediately precede the
  659. address with a dollar sign "$" and specify the address in hexadecimal.
  660.  
  661. The name specified for a TSR is the one reported by MAPMEM in the
  662. "Name" column. If this column reports "n/a", then you must instead
  663. specify the address from the "PSP" column.
  664.  
  665. DISABLE accepts the following command line syntax:
  666.  
  667.   DISABLE TSRname|$PSPaddress [options]
  668.  
  669. Options may be preceded by either / or -. Valid options
  670. are as follows:
  671.  
  672.      /A     reactivate the specified TSR.
  673.      /C     check for the presence of the specified TSR.
  674.      /H     work with upper memory if available.
  675.      /O     disable the TSR even if dangerous (Override).
  676.      /Q     write no screen output.
  677.      /U     work with upper memory, but halt if none found.
  678.      /?     write a help screen.
  679.  
  680. You can also put the string DISABLE=options in the DOS environment.
  681. For example, if you type
  682.  
  683.     SET DISABLE=/U/Q
  684.  
  685. at the DOS command line, DISABLE will use the /U and /Q options as the
  686. defaults thereafter.
  687.  
  688. If no option is specified, DISABLE will disable the named TSR. When /A
  689. is specified, a previously disabled TSR is reenabled.
  690.  
  691. /C causes DISABLE simply to check for the presence of a TSR. It writes
  692. an appropriate screen message and returns a DOS ERRORLEVEL to indicate
  693. whether the TSR is currently in memory: 0 if the TSR is present, 2 if
  694. it is not present, 254 or higher if an error occurs.
  695.  
  696. /H is like /U (see below), but will continue even if no upper memory
  697. blocks are found. /U will cause DISABLE to halt if no upper memory
  698. blocks are found. With /H you can write a batch file that works on all
  699. machines whether or not they have upper memory blocks.
  700.  
  701. /O allows DISABLE to proceed with disabling a TSR even if internal
  702. checks indicate that it isn't safe to do so. Use this option only
  703. after careful experimentation indicates that it is safe to do so.
  704.  
  705. /Q prevents DISABLE from writing any screen output. DOS ERRORLEVEL is
  706. still set to allow batch files to determine the results.
  707.  
  708. /U allows DISABLE to access upper memory blocks. You cannot disable a
  709. TSR loaded high without using this option or /H. As with RELEASE and
  710. RELNET, you must have a compatible memory manager in order to use the
  711. DISABLE /U option. See section 2 for more information.
  712.  
  713. DISABLE sets the DOS ERRORLEVEL in order to return status information
  714. to a batch file. It uses the following values of errorlevel:
  715.  
  716.   0       success: TSR is present, was disabled, or was reenabled.
  717.   1       TSR is present, but no action was required to enable or disable it.
  718.   2       TSR is not present in memory.
  719.   254     invalid command line.
  720.   255     severe error.
  721.  
  722. Examples of using DISABLE:
  723.  
  724.   DISABLE SK              disables SideKick
  725.   DISABLE SK /A           reenables SideKick
  726.   DISABLE SK /C           checks for the presence of SideKick
  727.   DISABLE SK /A /U        reenables SideKick when it was loaded into
  728.                           high memory
  729.   DISABLE $2F2E           disables the TSR at address 2F2E (hex)
  730.  
  731.  
  732. 5. MAPMEM, RAMFREE, and DEVICE
  733. ---------------------------------------------------------------------
  734. These three utilities provide status information about DOS memory
  735. usage. They don't make active changes to the system like RELEASE and
  736. DISABLE do.
  737.  
  738. MAPMEM.EXE displays a map of DOS memory. It shows the resident
  739. programs, how much memory they use, and what interrupt vectors each
  740. one controls. MAPMEM also shows information about expanded and
  741. extended memory when available.
  742.  
  743. MAPMEM writes to the standard output -- hence, the output can be
  744. printed or stored to a file by using DOS redirection.
  745.  
  746. Here is an example of MAPMEM output:
  747.  
  748. MAPMEM 3.2, Copyright 1991 TurboPower Software
  749.  
  750. Psp  Cnt   Size Name       Command Line        Hooked Vectors
  751. ---- --- ------ ---------- ------------------- ----------------------
  752.       2  74,704 DOS
  753. 1240  2   3,296 4DOS                           2E
  754.       1      80 ---free---
  755. 1316  1     464 MODE
  756. 133B  2   9,216 DESKPOP    /k /x /1            05 08 09 13 16 25 26 28
  757. 157F  2   3,296 TPE                            1B
  758. 164F  3   3,328 4dos       /e /x /u            22 23 24 2F
  759. 1722  2 560,736 ---free---
  760.         655,360 ---total--
  761.  
  762. EMS Memory
  763. 0000     16,384 n/a
  764.         770,048 ---free---
  765.       1,048,576 ---total--
  766.  
  767. XMS Memory
  768. 0001    409,600 n/a
  769. 0002    266,240 n/a
  770. 0003     73,728 n/a
  771. 0004    568,320 n/a
  772. 0005     22,528 n/a
  773.          35,840 ---free---
  774.       1,376,256 ---total--
  775.  
  776. "Psp" stands for Program Segment Prefix. This is the physical address,
  777. specified in hexadecimal, where the program was loaded. If you're
  778. running DOS 2.x, you'll need to use an address from this column to
  779. pass to DISABLE.
  780.  
  781. "Cnt" is the number of memory blocks DOS is using to manage the
  782. program. This will typically be two: one for the program itself and
  783. another for the environment that stores the program name, the DOS
  784. path, and other environment variables.
  785.  
  786. "Size" is the number of bytes of memory, specified in decimal,
  787. allocated to the program.
  788.  
  789. The "Name" column shows the name of the program that allocated the
  790. block. An "n/a" in this column means either that the program
  791. deallocated its environment to reduce memory usage or that the system
  792. is running DOS 2.x, where the owner names are simply not available.
  793. Note that, under MS-DOS 5.0, an alternate method allows MAPMEM to find
  794. the TSR name even if it deallocated its environment.
  795.  
  796. "Command line" shows the command line entered when the TSR was
  797. originally loaded. Some TSR's overwrite their command line with other
  798. code or data in order to save memory space. MAPMEM can usually detect
  799. this behavior and will display "n/a" in the command line column when
  800. it does.
  801.  
  802. The last column will be titled as either "Chained vectors" or
  803. "Hooked vectors". When WATCH is loaded, "Chained" will appear;
  804. otherwise, "Hooked" will. The numbers in this column indicate what
  805. interrupt vectors the TSR has grabbed. Without WATCH, MAPMEM must use
  806. a heuristic technique to identify the owner of each vector; don't be
  807. surprised if you see some ridiculous looking vector numbers. With
  808. WATCH, MAPMEM should report an accurate list for each TSR, and should
  809. show the complete chain of control for each interrupt.
  810.  
  811. MAPMEM indicates disabled TSR's by displaying the word "disabled" in
  812. the interrupt vector column of the report.
  813.  
  814. MAPMEM displays free memory blocks with the notation "---free---", and
  815. the total amount of memory in a particular region with the notation
  816. "---total--".
  817.  
  818. On systems running a compatible memory manager, MAPMEM will also
  819. contain a section reporting memory used in the region between 640K and
  820. 1 megabyte. This section is interpreted just like the one for lower
  821. memory. Because of the lack of complete standards for managing high
  822. memory, the names and attributes of programs in high memory may
  823. sometimes appear garbled: unfortunately there is little we can do
  824. about this without building features specific to particular memory
  825. managers into the TSR Utilities.
  826.  
  827. The expanded memory report shows each allocated block of expanded
  828. memory, as well as the free and total EMS space. If a program has
  829. assigned a name to an EMS memory block, that name will appear adjacent
  830. to the block size.
  831.  
  832. Similarly, when an XMS (extended) memory driver such as HIMEM.SYS is
  833. loaded, MAPMEM reports the blocks of allocated extended memory. A name
  834. is never available for XMS memory.
  835.  
  836. If extended memory is available and no HIMEM driver is loaded, MAPMEM
  837. will report the free and total amount of raw extended memory. These
  838. numbers can be misleading because some applications allocate extended
  839. memory by making it appear that the memory is no longer installed on
  840. the system.
  841.  
  842. MAPMEM offers the following command line options:
  843.  
  844.      /C name  check whether TSR "name" is loaded.
  845.      /E       report expanded (EMS) memory.
  846.      /F       report free areas only.
  847.      /H       do not use WATCH information for vectors.
  848.      /Q       write no screen output with /C option.
  849.      /S       show summary of all memory areas.
  850.      /U       report upper memory blocks if available.
  851.      /V       verbose report.
  852.      /X       report extended (XMS) memory.
  853.      /?       write this help screen.
  854.  
  855. You can also put the string MAPMEM=options in the DOS environment. For
  856. example, if you type
  857.  
  858.     SET MAPMEM=/U/E
  859.  
  860. at the DOS command line, MAPMEM will use the /U and /E options as the
  861. defaults thereafter.
  862.  
  863. When /C is specified, MAPMEM does not produce its normal report.
  864. Instead, it simply checks to see whether the named TSR is currently in
  865. memory. MAPMEM then writes an appropriate screen message, and also
  866. sets the DOS ERRORLEVEL so that a batch file can detect the results.
  867. MAPMEM returns errorlevel 2 if the TSR isn't loaded, 1 if there was a
  868. syntax error, and 0 if the TSR is in memory. Note that this option
  869. does *not* require WATCH to be loaded.
  870.  
  871. /E causes MAPMEM to generate its expanded memory report.
  872.  
  873. /F causes MAPMEM to report just the free areas in normal, high,
  874. expanded, and extended memory.
  875.  
  876. /H causes MAPMEM to report "hooked" vectors, even if WATCH is loaded.
  877.  
  878. /Q prevents MAPMEM from writing any screen output. This option is only
  879. meaningful in combination with the /C option.
  880.  
  881. /S generates a "summary" report. The report shows just the size, name,
  882. and command line of each program in conventional memory, including any
  883. free blocks. It also shows the free and total memory for EMS and XMS.
  884.  
  885. /U causes MAPMEM to write information about MS-DOS 5.0 high memory
  886. (upper memory blocks).
  887.  
  888. /V generates a verbose report instead of the standard report about
  889. normal and high memory. In this case, MAPMEM shows each individual
  890. memory block rather than just one for each program. It also adds two
  891. new columns of information. "Mcb" stands for Memory Control Block.
  892. This is a physical address, expressed in hexadecimal, of the DOS data
  893. structure used for managing each block of memory. The MCB address is
  894. typically one less than the address of the program. "Files" reports
  895. the number of files kept open by the TSR. In most cases this will be
  896. zero, in which case the corresponding column of the report is left
  897. blank. When it is non-zero, the maximum number of files opened by the
  898. rest of the programs (including the foreground application) is reduced
  899. accordingly.
  900.  
  901. When /V is active, MAPMEM also reports the memory allocation of each
  902. DOS device driver under DOS 5. It also shows details of memory
  903. associated with the interrupt vector table, the BIOS data area, and
  904. various DOS data areas.
  905.  
  906. RAMFREE.COM is a tiny program with a single purpose: to tell you how
  907. many bytes of memory are free for the next application. The number it
  908. reports is the same as that reported by (some versions of) the DOS
  909. CHKDSK utility. RAMFREE's advantage is that you don't need to wait for
  910. your hard disk to be analyzed before you find out how much memory is
  911. free.
  912.  
  913. DEVICE.EXE reports on device drivers installed by the CONFIG.SYS file.
  914. It shows the memory used by DOS itself, any additional drivers
  915. installed in CONFIG.SYS, and the space used for DOS file handles and
  916. buffers. Here is a simple example of DEVICE output:
  917.  
  918.  Address     Bytes   Name           Hooked vectors
  919. ---------   ------   -------------- --------------
  920. 0070:0BB3        -   CON
  921. 0070:0C68        -   AUX
  922. 0070:0C7A        -   COM1
  923. 0070:0D17        -   PRN
  924. 0070:0D29        -   LPT1
  925. 0070:0E15        -   CLOCK$
  926. 0070:0EE5        -   3 Block Units
  927. 0070:2071        -   LPT2
  928. 0070:2083        -   LPT3
  929. 0070:2095        -   COM2
  930. 0000:2C58    37712   NUL            08 0A 0C 0D 0E 13 25 26 29 31 70 72
  931.                                     73 74 75 76 77
  932. 09A5:0000     3488   0 Block Units
  933. 0A7F:0000       18   EMMXXXX0
  934. 0A7F:0012       46   386MAX$$       20
  935. 0A83:0000      768   1 Block Unit   19
  936. 0AB3:0000      768   1 Block Unit
  937. 0AE3:0000    18256   DOS buffers
  938.  
  939. The devices up to and including NUL are all part of DOS. DEVICE lumps
  940. their memory usage into a single value next to the NUL device. The
  941. memory usage associated with NUL does not include the interrupt vector
  942. table, the BIOS data area, or the low-memory DOS data area. If you
  943. wish to add this memory to the total, just take the hexadecimal
  944. segment of the first driver you see (in this case CON) and multiply it
  945. by 16 decimal. When the segment is 0070 as shown, that adds 1792 bytes
  946. to the total space for DOS.
  947.  
  948. DEVICE also lumps all of the drivers up to NUL into a single block
  949. when it comes to reporting hooked interrupt vectors. Because WATCH
  950. can't be installed prior to these device drivers, DEVICE must use an
  951. empirical technique to detect which vectors each driver controls.
  952. Therefore, some meaningless vectors may appear in the list. Any
  953. vectors that are grabbed by another program after the driver is loaded
  954. will not appear.
  955.  
  956. "Block units" typically refer to disk drives. Any drivers that appear
  957. after the NUL device are in the order that you've entered them in
  958. CONFIG.SYS. Drivers loaded for non-standard hard disks, like
  959. SpeedStor, sometimes make odd entries in the DEVICE report, as shown
  960. with "0 Block Units" above. RAM disks appear more logically: each of
  961. the "1 Block Unit" entries above is a VDISK with the data stored in
  962. extended memory.
  963.  
  964. Devices like 386MAX may also cause odd-looking entries: 386MAX puts
  965. most of its code in extended memory, and leaves just a bit behind in
  966. normal memory.
  967.  
  968. DEVICE offers the following command line options:
  969.  
  970.      /R     raw report.
  971.      /?     write a help screen.
  972.  
  973. You can also put the string DEVICE=options in the DOS environment. For
  974. example, if you type
  975.  
  976.     SET DEVICE=/R
  977.  
  978. at the DOS command line, DEVICE will use the /R option as the default
  979. thereafter.
  980.  
  981. The raw report shows more information about the device drivers, but in
  982. a less convenient format. Here's an example, taken on the same system
  983. as the previous report.
  984.  
  985.  Starting      Next             Strategy   Interrupt   Device
  986.  Address     Hdr Addr   Attr   Entry Pnt   Entry Pnt   Name
  987. ---------   ---------   ----   ---------   ---------   --------
  988. 0000:2C58   0AB3:0000   8004   0000:14C6   0000:14CC   NUL
  989. 0AB3:0000   0A83:0000   0800   0000:00A9   0000:00D4   1 Block Unit
  990. 0A83:0000   0A7F:0012   0800   0000:00A9   0000:00D4   1 Block Unit
  991. 0A7F:0012   0A7F:0000   C000   0000:0036   0000:003B   386MAX$$
  992. 0A7F:0000   09A5:0000   8000   0000:0036   0000:003B   EMMXXXX0
  993. 09A5:0000   0070:0BB3   2000   0000:0012   0000:001D   0 Block Units
  994. 0070:0BB3   0070:0C68   8013   0000:00C6   0000:00D1   CON
  995. 0070:0C68   0070:0D17   8000   0000:00C6   0000:00D7   AUX
  996. 0070:0D17   0070:0E15   A040   0000:00C6   0000:00E6   PRN
  997. 0070:0E15   0070:0EE5   8008   0000:00C6   0000:010C   CLOCK$
  998. 0070:0EE5   0070:0C7A   0840   0000:00C6   0000:0112   3 Block Units
  999. 0070:0C7A   0070:0D29   8000   0000:00C6   0000:00D7   COM1
  1000. 0070:0D29   0070:2071   A040   0000:00C6   0000:00EC   LPT1
  1001. 0070:2071   0070:2083   A040   0000:00C6   0000:00F4   LPT2
  1002. 0070:2083   0070:2095   A040   0000:00C6   0000:00FC   LPT3
  1003. 0070:2095   0070:FFFF   8000   0000:00C6   0000:00DD   COM2
  1004.  
  1005. In this report, the drivers are listed in DOS priority order rather
  1006. than the order in which they are loaded in memory. Additional columns
  1007. describe how DOS treats each driver. Ray Duncan's book "Advanced
  1008. MS-DOS" is a good place to learn more about these details.
  1009.  
  1010. The DEVICE program assumes that all device drivers are loaded in the
  1011. CONFIG.SYS file. That is not the case with the NetWare shell, which
  1012. patches itself into the device driver chain. DEVICE will write a
  1013. warning message and terminate before reporting the first patched-in
  1014. driver. The raw device report will still show all of the devices even
  1015. in this case.
  1016.  
  1017.  
  1018. 6. EATMEM
  1019. ---------------------------------------------------------------------
  1020. EATMEM is a small program that is useful only to software developers.
  1021. It is a TSR that consumes a specified amount of memory. Developers can
  1022. use it to simulate a system with less memory, or to create a buffer
  1023. zone between an application and programs preceding it.
  1024.  
  1025. The memory used by EATMEM can be freed only by using MARK and RELEASE.
  1026.  
  1027. Call EATMEM with a single command line parameter, specifying the
  1028. (decimal) number of KILOBYTES to eat up:
  1029.  
  1030.   EATMEM KiloBytesToEat
  1031.  
  1032. For example, EATMEM 10 consumes 10K bytes of memory.
  1033.  
  1034. EATMEM will allow you to eat up all available memory, leading to a
  1035. system crash when COMMAND.COM cannot be reloaded. Be sure to calculate
  1036. how much memory to use before calling EATMEM.
  1037.  
  1038.  
  1039. 7. Known Limitations
  1040. ---------------------------------------------------------------------
  1041. RELEASE and RELNET are capable of removing many, but not all, TSR's
  1042. from memory. If you find that RELEASE doesn't successfully remove a
  1043. TSR, try RELNET instead. Even with RELNET, however, some TSR's cannot
  1044. be released without specific internal knowledge of the TSR. Since we
  1045. don't have (or care about) all such TSR's, RELEASE and RELNET may not
  1046. be compatible with them. If you find that RELNET won't release a TSR,
  1047. there is little we can do to help you.
  1048.  
  1049. The most common examples of TSR's that can't be released are those
  1050. that cooperate with other TSR's in memory. Examples include
  1051. Microsoft's MOUSE driver and its associated MENU program; and the
  1052. program CED with its "user-installed commands" such as KEYIN, HS, RAW,
  1053. and others. These programs can be released, but only if all the
  1054. cooperating partners are released at the same time. CED is
  1055. well-behaved in that it provides a built-in command (KILL) to release
  1056. its partners. MOUSE is not so flexible, though.
  1057.  
  1058. Another problem TSR (and one that we hear about regularly) is the
  1059. Token Ring IPX driver for Novell NetWare. For some reason, IBM
  1060. designed this IPX driver in two pieces: one part that is loaded as a
  1061. device driver in CONFIG.SYS and another that is loaded as a TSR in
  1062. AUTOEXEC.BAT. RELNET does not release device drivers in general, and
  1063. it cannot release the TSR portion of the Token Ring driver without
  1064. also releasing the device driver portion.
  1065.  
  1066. You should almost never use RELEASE or RELNET to release disk caching
  1067. programs. If you do so, part of the information that should be stored
  1068. on disk will never be written there, and you may end up with a
  1069. corrupted disk as a result. If you know that the disk cache uses a
  1070. "write-through" algorithm (which guarantees that all writes
  1071. immediately go to disk), or if the disk cache has a "flush the cache"
  1072. command, then it may be safe to release the cache.
  1073.  
  1074. You cannot release the FASTOPEN and APPEND TSR's provided with DOS 3.3
  1075. and later. These TSR's patch internal DOS data areas that cannot be
  1076. reliably located even by MARKNET and RELNET.
  1077.  
  1078. You cannot use DISABLE to deactivate SideKick Plus, whose swapping
  1079. technique is incompatible with DISABLE.
  1080.  
  1081. For reasons we haven't been able to determine, when using the
  1082. combination of PC-DOS 4.00 and 386MAX 6.00 it isn't possible to reload
  1083. the NetWare NETX shell high after unloading it once using RELNET /U.
  1084. If you have this problem, we recommend that you toss your DOS 4.00 and
  1085. upgrade to MS-DOS 5.0.
  1086.  
  1087.  
  1088. 8. Version History
  1089. ---------------------------------------------------------------------
  1090. If you're converting to this version from version 2.5 or earlier, be
  1091. sure to delete RELEASE.COM, DISABLE.COM, and MAPMEM.COM from your
  1092. directories. The new versions of these programs are EXE files instead
  1093. of COM files.
  1094.  
  1095. Always be sure to make just one version of the TSR Utilities
  1096. accessible on your disk. Many of the utilities cooperate with one
  1097. another and require matched versions to work correctly.
  1098.  
  1099. See the source code for the programs for more detailed information
  1100. about changes.
  1101.  
  1102. Version 3.3
  1103.   All
  1104.     - don't require spaces to separate command line switches. For
  1105.       example, /U/V is now a valid command line to pass to MAPMEM.
  1106.     - search environment for a string matching program name to
  1107.       set default command line switches. For example, SET MAPMEM=/U/V
  1108.       causes MAPMEM to use /U/V as default command line switches.
  1109.   DISABLE
  1110.     - find TSRs by name using same technique as MAPMEM
  1111.     - add /H option to use high memory if available
  1112.   FMARK
  1113.     - detect full disk while writing mark file
  1114.     - erase partial mark file if any error occurs during execution
  1115.   MAPMEM
  1116.     - /C getname wasn't finding TSRs in high memory
  1117.   RELEASE
  1118.     - add /H option to use high memory if available
  1119.   RELNET
  1120.     - add /H option to use high memory if available
  1121.   WATCH
  1122.     - avoid overwriting the startup code with long initial mcb lists
  1123.  
  1124. Version 3.2  11/22/91
  1125.   All
  1126.     - the approach to identifying high memory blocks was generalized
  1127.       to allow the utilities to work with more memory managers
  1128.   MAPMEM
  1129.     - handle some DRDOS 6.0 segment numbering conventions
  1130.     - fix cosmetic indentation problem in raw extended memory summary
  1131.   RELEASE
  1132.     - reverse order in which memory blocks are released to work
  1133.       correctly with the 386MAX high memory manager
  1134.     - merge free blocks in high memory when possible (QEMM doesn't do
  1135.       this automatically)
  1136.     - don't restore parent segment if it's no longer valid (applies
  1137.       to QEMM LOADHI)
  1138.   RELNET
  1139.     - a change made in 3.1 caused RELNET to crash under DOS 3.3
  1140.     - reverse order in which memory blocks are released to work
  1141.       correctly with the 386MAX high memory manager
  1142.     - merge free blocks in high memory when possible (QEMM doesn't do
  1143.       this automatically)
  1144.     - don't restore parent segment if it's no longer valid (applies
  1145.       to QEMM LOADHI)
  1146.   WATCH
  1147.     - deal with odd vector addresses as trapped by DOS 5 MODE command
  1148.  
  1149. Version 3.1  11/4/91
  1150.   Documentation
  1151.     - clarified compatibility issues with various versions of 386MAX
  1152.       and QEMM386
  1153.   MAPMEM
  1154.     - EMS report wasn't showing last EMS block
  1155.     - there was a name reporting problem with TSR's that shrink their
  1156.       environment block to zero size but don't deallocate it (found
  1157.       with FluShot+)
  1158.     - was leaving interrupts 0, 3F, and others pointing to itself
  1159.       after halting
  1160.     - wouldn't show command line and hooked vectors for TSR's that
  1161.       overwrote the low portion of the PSP with data
  1162.     - wouldn't find a program (using /C) whose name was stored in
  1163.       lowercase in the environment (noticed with Windows 3.0).
  1164.   RELNET
  1165.     - needed to restore less of the DOS variables table. Restoring
  1166.       something in the previously restored region sometimes disabled
  1167.       high memory access after the release
  1168.     - added /I option to prevent shutting down IPX events and sockets
  1169.   RAMFREE
  1170.     - now supports >640K free RAM
  1171.     - now adds RAMFREE's environment block to free memory reported
  1172.   WATCH
  1173.     - lost control of int 21 when FluShot+ grabbed it
  1174.     - didn't save vector change when a program grabbed int 27
  1175.     - didn't update stubs when a program grabbing int 21 or 27 was
  1176.       released
  1177.     - ended up rewriting WATCH again to solve these compatibility
  1178.       problems. The memory consumed by WATCH shrank by 1700 bytes as a
  1179.       result!
  1180.  
  1181. Version 3.0 10/12/91
  1182.   Numerous changes to provide compatibility with MS-DOS 5.0 and
  1183.   programs loaded into high memory. See TSR30.DOC for details.
  1184.  
  1185. Version 2.9  5/4/89
  1186.   MAPMEM
  1187.     - fix problem when EMS is available but none is allocated
  1188.   DISABLE
  1189.     - fix problem when TSR to disable is last one loaded
  1190.     - disallow disable when patches would overlap (SK+)
  1191.     - add /O option to allow disable even for overlap (Periscope)
  1192.   RELEASE/RELNET
  1193.     - don't treat file marks as protected marks
  1194.  
  1195. Version 2.8  3/10/89
  1196.   add MARKNET/RELNET
  1197.   add DEVICE
  1198.   add extended memory reporting to MAPMEM
  1199.   add TSR detection capability to DISABLE
  1200.   treat file and net marks as protected in RELEASE
  1201.   add key stuffing routine to RELEASE
  1202.   remove 8259 revector routine from RELEASE (available in RELNET)
  1203.  
  1204. Version 2.7  3/4/89
  1205.   used for private testing of MARKNET/RELNET
  1206.  
  1207. Version 2.6  1/15/89
  1208.   fix problem in MARK/RELEASE when command processor is EXE file
  1209.   convert source to Turbo Pascal 5.0
  1210.  
  1211. Version 2.5  6/2/87
  1212.   version checks to avoid mixing different MARK/RELEASE
  1213. :
  1214. many intervening versions
  1215. :
  1216. Version 1.0  1/2/86
  1217.   initial version
  1218.  
  1219. For information about other versions, see the source files.
  1220.  
  1221.  
  1222. 9. Copyright and License Information
  1223. ---------------------------------------------------------------------
  1224. The TSR Utilities are Copyright (c) 1986,1991 by Kim Kokkonen. All
  1225. Rights Reserved.
  1226.  
  1227. Although these programs are copyrighted, you may distribute them
  1228. freely as long as you do not sell them or include them with other
  1229. software that you sell. The TSR Utilities may be sold by user's groups
  1230. and shareware distributors for a fee not to exceed $10. Otherwise, if
  1231. you wish to sell the TSR Utilities, alone or as part of another
  1232. software package, please contact us for a license agreement.
  1233.  
  1234. These programs are not shareware: we're not asking for a donation.
  1235. However, if you request that we send you a new version, we'll ask for
  1236. $20 to cover our time and costs. The disk you receive will include the
  1237. latest version of the TSR Utilities, including the complete source
  1238. code.
  1239.  
  1240. We upload new versions of the TSR Utilities to LIB 6 of the PCVENB
  1241. forum on CompuServe. The executable programs are stored in a file
  1242. called TSRCOM.ZIP, and the source code is stored in a file called
  1243. TSRSRC.ZIP. From CompuServe, the programs fan out to public bulletin
  1244. boards around the world.
  1245.  
  1246. TurboPower Software also maintains a small bulletin board system just
  1247. for the purpose of downloading our software. The BBS number is
  1248. 719-260-9726. You'll find TSRCOM.EXE and TSRSRC.EXE in file area 2
  1249. (TurboPower Software Files). These are self-extracting archives. Our
  1250. BBS is a Wildcat! system; just follow the prompts to log in the first
  1251. time. Due to the transient nature of bulletin boards, we cannot
  1252. recommend other BBS's you should call to download the latest version.
  1253.  
  1254. The TSR Utilities were written by Kim Kokkonen of TurboPower Software,
  1255. with thanks to Neil Rubenking for the original idea behind MARK and
  1256. RELEASE. Special thanks also to Richard Wilson and Barry Simon at
  1257. Cal Tech for the idea that lead to FMARK, and for much useful
  1258. correspondence about the TSR Utilities. The TSR Utilities are written
  1259. in Turbo Pascal and assembly language.
  1260.  
  1261. You can reach Kim Kokkonen at:
  1262.  
  1263.      TurboPower Software
  1264.      P.O. Box 49009
  1265.      Colorado Springs, CO 80949-9009
  1266.  
  1267.      719-260-6641 (voice, Monday-Friday 9AM-5PM)
  1268.      719-260-7151 (fax)
  1269.      Compuserve: 76004,2611
  1270.